import modal from './modal/modal.vue'
import $pop from './$pop/index.js'

const preFix = 'o'
const myPlugin = {
  install(app, options) {
    app.config.globalProperties.$pop = $pop()
    app.component(`${preFix}${modal.__name.replace(/^\S/, s => s.toUpperCase())}`, modal)
  }
}

export default myPlugin